home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / DFQBX31.ZIP;1 / DFRAMEX.DOC next >
Encoding:
Text File  |  1993-12-10  |  60.6 KB  |  1,190 lines

  1.  
  2.  
  3.                                D O O R F R A M E
  4.                                   Version 3.1
  5.  
  6.                       A BBS Doors Development Library
  7.                         for the BASCOM 7.1 compiler
  8.  
  9.                             Copyright (c) 1993
  10.                      By Richard Paquette and Chuck Valecek
  11.                             All rights reserved.
  12.  
  13.                             Support boards are:
  14.  
  15.                               The Livewire BBS 
  16.                             - Richard Paquette - 
  17.                    - Public Nodes (2) 609-235-5297 (HST) -
  18.                          
  19.                               Suburban Software
  20.                               - Chuck Valecek - 
  21.                 - Public Nodes (2) 708-636-6694 / 708-636-6697 -
  22.  
  23.  
  24.  
  25.  
  26. DOORFRAME v3.1 - Users Guide - Page i
  27.  
  28.  
  29.                                 C O N T E N T S
  30.                                =================
  31.  
  32.         Warranty ............................................ ii
  33.         Copyright notice .................................... ii
  34.         Distribution ........................................ ii
  35.         Description ......................................... ii
  36.         BOX.IT .............................................. 1
  37.         BACK.SPACE .......................................... 2
  38.         CLEARBUFFER ......................................... 2
  39.         CLREOL .............................................. 2
  40.         CLRMOL .............................................. 2
  41.         CLRSOL .............................................. 2
  42.         CLRSCRN ............................................. 2
  43.         DE.LAY .............................................. 2
  44.         DETECT.ANSI ......................................... 2
  45.         DIS.PLAY ............................................ 3
  46.         ENTER ............................................... 4
  47.         EXIT.DOOR ........................................... 4
  48.         IN.KEY ...............................................4
  49.         IN.PUT .............................................. 4
  50.         INITIALIZE .......................................... 5
  51.         LINES ............................................... 5
  52.         MAKE.BLT ............................................ 6
  53.         MAKE.BLT.CURRENT .................................... 6
  54.         MORE ................................................ 6
  55.         MUSIC ............................................... 6
  56.         OUT.PUT ............................................. 6
  57.         SEND ................................................ 7
  58.         SENDANSI ............................................ 7
  59.         SHOW.BLT ............................................ 7
  60.         COLOR TABLE ......................................... 8
  61.         CONFIGURATION FILE FORMAT ........................... 9
  62.         PCBOARD.SYS VARIABLES ............................... 10
  63.         USERS.SYS VARIABLES ................................. 12
  64.         DOOR.SYS VARIABLES .................................. 13
  65.         USERINFO.DAT VARIABLES .............................. 15
  66.         DORINFOx.DEF VARIABLES .............................. 15
  67.         CALLINFO.BBS VARIABLES .............................. 16
  68.         SFDOORS.DAT VARIABLES ............................... 18
  69.         MISCELLANEOUS NOTES ................................. 20
  70.  
  71.  
  72. DOORFRAME v3.1 - Users Guide - Page ii
  73.  
  74.  
  75.                                    Warranty
  76.  
  77.     This product is provided "as is" without warranty of any kind. The entire
  78.     risk as to the results and  performance of the program is assumed by you.
  79.     Futhermore, the  author does  not warrant, guarantee, or  make any  other
  80.     representations regarding  the use of,  or the  results of the use of the
  81.     program,  and you  rely on the  program and  results  solely at  your own
  82.     risk.  The author  cannot and  will not accept  responsibility for system
  83.     damage, loss of profit, or any other special, consequential or incidental 
  84.     damages  resulting  from  the  use  or  inability  to  use this  product.
  85.  
  86.                                    Copyright
  87.  
  88.     DOORFRAME (Copyright (c) 1993 by Richard Paquette & Chuck Valecek) is being
  89.     distributed as Shareware. Under this concept you may use the SHAREWARE or
  90.     (unregistered) version for a reasonable period of time for evaluation 
  91.     after which you should either register your copy or discontinue  usage.
  92.  
  93.  
  94.                                  Distribution
  95.  
  96.     You  are encouraged to distribute DOORFRAME provided that all files
  97.     contained in the archive are distributed in their original and
  98.     unmodified state.
  99.  
  100.                                   Description
  101.     
  102.     DOORFRAME is a subroutine library for developing online BBS Doors for
  103.     systems that are compatible with PCBOARD.SYS, USERS.SYS, DOOR.SYS,
  104.     CALLINFO.BBS, USERINFO.DAT, SFDOORS.DAT, or DORINFOx.DEF for
  105.     interfacing to the BBS.
  106.     This version of DoorFrame was written for BASCOM (tm) 7.1 and is not
  107.     recommended for use with earlier versions of the compiler. DoorFrame also
  108.     utilizes some of the routines contained in Tom Hanlin's PBClone library.
  109.     The COM routines are handled by the QBSerial I/O library.
  110.     NOTE: A version of DoorFrame is also available for Quickbasic 4.x.
  111.  
  112.  
  113. DOORFRAME v3.1 - Users Guide - Page 1
  114.  
  115.  
  116.                               DOORFRAME ROUTINES
  117.                              ====================
  118.  
  119. NOTE: 
  120. Since the subroutines are DECLAREd in DFRAMEX.INC (you DID $INCLUDE: it didn't 
  121. you?) you should not use the CALL statement. Type the name of the subroutine 
  122. and list it's parameters (if any) without the enclosing parentheses.
  123. For example:
  124.  
  125.  DIS.PLAY MSG$, FG%, BG%, BLINK%, BELL%, XPOS%, YPOS%, NL%, CENTER%, CAPS% 
  126. ------------------------------------------------------------------------------
  127.  
  128. SUBROUTINE: 
  129. BOX.IT SROW%,SCOL%,EROW%,ECOL%,BTYPE%,BFG%,BBG%,FFG%,FBG%,FCHAR%,SHADOW%,TITLE$,HFG%,HBG%
  130. PARAMETERS: SROW%    - ROW the box is to start at. Valid numbers are 1 - 22.
  131.                        Accepts an INTEGER number or variable.
  132.             SCOL%    - COLUMN the box is to start at. Valid numbers are 1 - 79.
  133.                        Accepts an INTEGER number or variable.
  134.             EROW%    - ROW the box is to end at. Valid numbers are 2 - 23.
  135.                        Accepts an INTEGER number or variable.
  136.             ECOL%    - COLUMN the box is to end at. Valid numbers are 2 - 80.
  137.                        Accepts an INTEGER number or variable.
  138.             BTYPE%   - Type of border. Accepts an INTEGER number or variable.
  139.                          0 = No border (spaces all the way around).
  140.                          1 = Single line all the way around.
  141.                          2 = Double line all the way around.
  142.                          3 = Double line on sides, single on top and bottom.
  143.                          4 = Single line on sides, double on top and bottom.
  144.             BFG%     - Foreground color of the border. (See color table)
  145.                        Accepts an INTEGER number or variable.
  146.             BBG%     - Background color of the border. (See color table)
  147.                        Accepts an INTEGER number or variable.
  148.             FFG%     - Foreground color of the box fill characters.
  149.                        Accepts an INTEGER number or variable.
  150.             FBG%     - Background color of the box fill characters.
  151.                        Accepts an INTEGER number or variable.
  152.             FCHAR%   - ASCII number of the character to fill box with.
  153.                        EX: 32 = SPACE, 65 = A, 206 = Œ
  154.             SHADOW%  - -1 = no Shadow, 0 - 7 = Background color of the Shadow. 
  155.                        This will put a Shadow on the right and bottom edges 
  156.                        of the box.
  157.             TITLE$   - Displays a title centered on the top border.
  158.                        Accepts a STRING variable or QUOTED TEXT.
  159.             HFG%     - Foreground color of TITLE$
  160.             HFG%     - Background color of TITLE$
  161.  
  162. DESCRIPTION: Draws a BOX with various style borders. The inside of the
  163.              BOX may be filled with any ASCII character you choose. The
  164.              upper left corner of the screen is ROW 1, COLUMN 1 and the
  165.              bottom right is ROW 23, COLUMN 80.
  166.  
  167.  
  168.  
  169.  
  170. DOORFRAME v3.1 - Users Guide - Page 2
  171.  
  172. SUBROUTINE: BACK.SPACE ROW%, COL%, NUM%
  173. PARAMETERS: ROW%, COL%, NUM%
  174. DESCRIPTION: Backspaces NUM% from the ROW% and COL% specified.
  175.  
  176. SUBROUTINE: CLEARBUFFER BUFF%
  177. PARAMETERS: BUFF%, 0, 1, 2
  178. DESCRIPTION: Clears either the keyboard buffer, the communications input
  179.              buffer, or both.
  180.              0 = Clear both buffers.
  181.              1 = Clear communications input buffer only.
  182.              2 = Clear keyboard buffer only.
  183.  
  184. SUBROUTINE: CLREOL XPOS%, YPOS%, BGC%
  185. PARAMETERS: XPOS%, YPOS%, BGC%
  186. DESCRIPTION: Clears from the specified row and column to the end of that
  187.              line. The line is cleared in whatever color is specified in
  188.              the BGC% parameter. NOTE: Does not work in non-ANSI.
  189.  
  190. SUBROUTINE: CLRMOL XPOS%, YPOS%, LENGTH%, BGC%
  191. PARAMETERS: XPOS%, YPOS%, LENGTH%, BGC%
  192. DESCRIPTION: Clears from the specified row and column for the number of
  193.              columns given in LENGTH%. The line is cleared in whatever
  194.              color is specified in the BGC% parameter.
  195.              NOTE: Does not work in non-ANSI.
  196.  
  197. SUBROUTINE: CLRSOL XPOS%, YPOS%, BGC%
  198. PARAMETERS: XPOS%, YPOS%, BGC%
  199. DESCRIPTION: Clears from the specified row and column to the start of that
  200.              line. The line is cleared in whatever color is specified in
  201.              the BGC% parameter. NOTE: Does not work in non-ANSI.
  202.  
  203. SUBROUTINE: CLRSCRN
  204. PARAMETERS: BGC%
  205. DESCRIPTION: Clears both the LOCAL (if ON) and REMOTE displays in the back-
  206.              ground color of your choice. Range is 0 - 7. ANSI only.
  207.  
  208.  
  209. SUBROUTINE: DE.LAY SEC%
  210. PARAMETERS: SEC%, 1, 2, Etc.
  211. DESCRIPTION: Pauses your program for the number of seconds in SEC%. Accepts
  212.              INTEGER number or variable.
  213.  
  214. SUBROUTINE: DETECT.ANSI
  215. PARAMETERS: None
  216. DESCRIPTION: This routine will determine if the remote system has ANSI
  217.              capability. If the remote system is ANSI compatible, the
  218.              GRAPHICS% variable will be set equal to -1 otherwise it is
  219.              set to 0. This routine does not control whether COLOR is used
  220.              or not, see the MODE% variable for that.
  221.  
  222.  
  223.  
  224. DOORFRAME v3.1 - Users Guide - Page 3
  225.  
  226. SUBROUTINE: 
  227. DIS.PLAY MSG$,FG%,BG%,BLINK%,BELL%,XPOS%,YPOS%,NL%,CENTER%,CAPS%,CODES%
  228. PARAMETERS: MSG$     - Text to be printed in either variable or quoted form.
  229.                        Example: "Print this" or MSG$ = "Print this".
  230.             FG%      - Foreground color (0 - 15) Of the text. Can be in
  231.                        INTEGER number or INTEGER variable form. 
  232.                        Example: FG% = 1, 1, BLUE (See Color Table)
  233.             BG%      - Background color (0 - 7) of text otherwise same as FG%
  234.             BLINK%   - Enter 1 for blinking text or 0 for normal text.
  235.                        Accepts INTEGER number or INTEGER variable.
  236.             BELL%    - Enter 1 to sound a beep on the remote or 0 for no
  237.                        beep. Does not beep on the local computer.
  238.                        Accepts INTEGER number or INTEGER variable.
  239.             XPOS%    - Row number for cursor positioning. Valid numbers
  240.                        are 0 - 23 (status line is on 24 - 25). Enter 0 to
  241.                        disable. Accepts INTEGER number or variable.
  242.                        NOTE: XPOS% is ignored when GRAPHICS% = 0.
  243.             YPOS%    - Column number for cursor positioning. Valid numbers
  244.                        are 0 - 80. Enter 0 to disable. Accepts INTEGER number
  245.                        or INTEGER variable.
  246.                        NOTE: YPOS% is ignored when GRAPHICS% = 0.
  247.             NL%      - Enter 1 to send a CR/LF at the end of the line. Enter
  248.                        0 to position the cursor after the last character.
  249.                        Accepts INTEGER number or INTEGER variable.
  250.             CENTER%  - Enter 1 to center the line or 0 for no centering.
  251.             CAPS%    - Enter 1 to convert text to all uppercase.
  252.                        Enter -1 to convert text to all lowercase.
  253.                        Enter 0 for no case conversion.
  254.                        Accepts INTEGER number or INTEGER variable.
  255.             CODES%   - 0 = No color codes in this statement.
  256.                        1 = Color codes are present in this statement.
  257.  
  258. DESCRIPTION: Displays text to both the Local (if on) and Remote screens.
  259.              Accepts the full ASCII charcter set (0 - 255). Supports ANSI
  260.              color and cursor positioning (XPOS%, YPOS%). DoorFrame features
  261.              auto-ANSI detection and will display in graphics mode if it
  262.              senses ANSI capability on the remote end.
  263.  
  264. ENHANCEMENTS: There are some special symbols available to make text blink
  265.              in the middle of a line in any color you wish. For example:
  266.  
  267.              DIS.PLAY "This will %{Blink Yellow{", LWHITE, BLACK, 0, 0,......
  268.  
  269.              Note the {'s before and after Blink Yellow. They tell the routine
  270.              to display the text in between in yellow and blinks because 
  271.              of the % symbol. Without the % the text is displayed in yellow
  272.              but does not blink. The rest of the line is displayed in white
  273.              on black. The symbols and their corresponding colors are:
  274.                 ~ = Blue,  ` = Green,  @ = Cyan,  ^ = Red,  | = Magenta
  275.                 { = Yellow, and } = White 
  276.              Put a * in front of the first symbol to display in low intensity
  277.              colors. Ex: *}text} displays 'text' in low intensity white. And
  278.              %*}test} displays 'text' in low intensity white and blinks.
  279.  
  280. DOORFRAME v3.1 - Users Guide - Page 4
  281.  
  282.              Please note that you must have called DETECT.ANSI before using
  283.              these symbols and the caller must be ANSI capable. Multiple codes
  284.              are allowed in one Dis.Play statement. See the included
  285.              DFDEMO.BAS file for examples on using this option.
  286.              If a particular Dis.Play statement does not contain any of these
  287.              color codes, then the Codes% parameter should contain a 0. This
  288.              will result in a significant increase in display speed since the
  289.              routine doesn't have to search for and strip these characters.
  290.  
  291. SUBROUTINE: ENTER
  292. PARAMETERS: None
  293. DESCRIPTION: Outputs a "Press <ENTER> to Continue" prompt and waits for the
  294.              response. If the caller is in graphics mode, this is centered
  295.              on line 23. In non-graphics mode it is centered 2 lines below
  296.              the last line printed.
  297.  
  298.  
  299. SUBROUTINE: EXIT.DOOR YN$
  300. PARAMETERS: YN$, "Y", "N", "G"
  301. DESCRIPTION: VERY IMPORTANT! Always call this subroutine as the last thing
  302.              your program does. EXIT.DOOR updates the system files with any
  303.              changes that have been made to system variables, closes the
  304.              files, etc.
  305.  
  306.              You can toggle this ON, "Y" or OFF, "N" when you call EXIT.DOOR.
  307.              Accepts a STRING variable YN$ = "Y" or quoted text "Y".
  308.              If you wish to allow the caller to log off from your Door, call
  309.              EXIT.DOOR "G". When you use EXIT.DOOR "G", DoorFrame returns a
  310.              DOS Error Level of 1 for Wildcat! systems and 62 for all others.
  311.  
  312.  
  313. SUBROUTINE:
  314. IN.KEY
  315. PARAMETERS: NONE
  316. DESCRIPTION: Simple routine to get a resonse from a user. Basically it emulates
  317.              the BASIC Inkey command. It will do nothing but get a response from
  318.              the user and check for dropped carrier. It does NOT watch the time
  319.              thats your job. Should return a response faster than the IN.PUT
  320.              routine. It will return a value in RESPONSE$.
  321. EXAMPLE:     
  322.              DO WHILE RESPONSE$ = ""
  323.                IN.KEY
  324.                X& = X& + 1
  325.                DIS.PLAY STR$(X&), FG%, BG%, BLINK%, BELL%, XPOS%, YPOS%, NL%, CENTER%, CAPS%, CODES%
  326.              LOOP
  327.  
  328.  
  329. SUBROUTINE: 
  330. IN.PUT LENGTH%, WAITTIME&, IFG%, IBG%, AUTOCR%, Text$, TFG%, TBG%, X%, Y%, Show%
  331.  
  332. PARAMETERS: LENGTH%   - Desired length of input. Accepts an INTEGER number
  333.                         or variable. 0 = any length.
  334.             WAITTIME& - Number of seconds to wait for input. If ENTER is not
  335.                         pressed before this times out, control is passed back
  336.                         to the calling routine and RESPONSE$ will contain "-1"
  337.             IFG%      - Foreground color of the response (INTEGER).
  338.             IBG%      - Background color of the response (INTEGER).
  339.             AUTOCR%   - 1 = Automatic CR, 0 = Wait for ENTER to be pressed.
  340.             Text$     - Text to display (if any). Use "" for no display.
  341.             TFG%      - Foreground color of Text$
  342.             BFG%      - Background color of Text$
  343.             X%        - X coordinate to display text. 0 = current coordinate.
  344.             Y%        - Y coordinate to display text. 0 = current coordinate.
  345.             Show%     - 0 = Don't display response, 1 = Display response.
  346.  
  347. DESCRIPTION: Gets a response from the caller which is returned in the variable
  348.              RESPONSE$. Passes ASCII characters in the range 32 - 127 and
  349.              ignores all others unless Hi.Ascii% = 1, in which case it accepts
  350.              ASCII 32 - 255. IN.PUT also allows you to use HOT KEYS! If you are
  351.              prompting for a Y/N you could do something like:
  352.              
  353.              IN.PUT 1, 180, 12, 0, 1, "Is everything correct? (y/n) ", 1, 1, 0
  354.              IF UCASE$(RESPONSE$) = "Y" THEN      Etc., Etc.
  355.  
  356.  
  357. DOORFRAME v3.1 - Users Guide - Page 5
  358.  
  359.              As soon as the caller hit Y or N, the subroutine terminates
  360.              without his having to hit ENTER (however IN.PUT always returns
  361.              when ENTER is pressed). The response would not be displayed.
  362.              The IN.PUT can also be used as a timed routine. In the example
  363.              above, The routine would wait for 180 seconds. if it does not
  364.              receive a keypress within that time, it returns to the calling
  365.              routine and RESPONSE$ would contain a "-1".
  366.              IN.PUT features word-wrap ability in both forward typing and
  367.              while backspacing.
  368.  
  369. SUBROUTINE: INITIALIZE
  370. PARAMETERS: None
  371. DESCRIPTION: VERY IMPORTANT! You MUST make a call to INITIALIZE before your
  372.              code does anything. This subroutine opens the system files and
  373.              obtains all the information you will need to run your Door. It
  374.              first reads the configuration file you passed on the command
  375.              line, then it reads the BBS interface file PCBOARD.SYS, etc.
  376.              There are 3 variables that must be populated before the call
  377.              to INITIALIZE. 
  378.                 PROGNAME$ = "Name of your Door"
  379.                 EXENAME$ = "FILENAM"
  380.                 VERSION$ = " v0.0"
  381.                 INITIALIZE
  382.              PROGNAME$ and VERSION$ are displayed on the Status line after
  383.              the callers name. EXENAME$ must be populated if you plan to use
  384.              the high score bulletin generator. EXENAME$ is the filename of
  385.              your program minus the .EXE extension.
  386.          ->  NOTE: EXENAME$ MUST BE NO MORE THAN 7 CHARACTERS!
  387.  
  388.  
  389. SUBROUTINE: LINES SROW%,SCOL%,LEN%,DIR$,ENDS%,MID%,EFG%,EBG%,MFG%,MBG%
  390. PARAMETERS: SROW%    - Row the line starts at. Valid numbers are 1 - 22.
  391.                        Accepts an INTEGER number or variable.
  392.             SCOL%    - Column the line starts at. Valid numbers are 1 - 79.
  393.                        Accepts an INTEGER number or variable.
  394.             LEN%     - Length of the line. Max. of 23 for vertical, 80 horiz.
  395.                        Accepts an INTEGER number or variable.
  396.             DIR$     - "H" = horizontal. "V" = vertical. Accepts a STRING
  397.                        variable or quoted text.
  398.             ENDS%    - If you are placing the line inside a box, you can
  399.                        make the ends of the line match the box border.
  400.                        Accepts an INTEGER number or variable.
  401.                          0 = No ends. (straight line only)
  402.                          1 = Single line.
  403.                          2 = Double line.
  404.             MID%     - Type of line. 1 = Single line. 2 = Double line.
  405.                        Accepts an INTEGER number or variable.
  406.             EFG%     - Foreground color of the ends (see color table).
  407.                        Accepts an INTEGER number or variable.
  408.             EBG%     - Background color of the ends (see color table).
  409.                        Accepts an INTEGER number or variable.
  410.             MFG%     - Foreground color of the line (see color table).
  411.                        Accepts an INTEGER number or variable.
  412.             MBG%     - Background color of the line (see color table).
  413.                        Accepts an INTEGER number or variable.
  414. DESCRIPTION: Draws either a vertical or horizontal line at the specified
  415.              location. 
  416.  
  417.  
  418. DOORFRAME v3.1 - Users Guide - Page 6
  419.  
  420. SUBROUTINE: MAKE.BLT HI.SCORE&
  421. PARAMETERS: HI.SCORE&, 10, 10000, Etc.
  422. DESCRIPTION: This routine will write a hi-score bulletin listing the top ten
  423.              scores. The parameter passed must be a LONG INTEGER (&). This
  424.              routine creates a file called FILENAME.BUL (where FILENAME is
  425.              the same as specified in the EXENAME$ variable). The first line
  426.              of this .BUL file indicates the path to the actual BLT file. It
  427.              initially writes FILENAME.BLT. If you wish to have a different
  428.              filename (such as BLT1) you must edit this line. The filename
  429.              for your BLT file should be 7 characters or less because
  430.              DoorFrame also writes a graphics BLT and appends a G to the
  431.              filename. (You should also explain this to your user Sysops!)
  432.  
  433. SUBROUTINE: MAKE.BLT.CURRENT HI.SCORE&
  434. PARAMETERS: HI.SCORE&, 10, 10000, Etc.
  435. DESCRIPTION: Same as MAKE.BLT except it posts CURRENT scores rather than
  436.              highest scores.
  437.  
  438.  
  439. SUBROUTINE: MORE
  440. PARAMETERS: None
  441. DESCRIPTION: Outputs "Press <ENTER> to continue, or <E> to end" and waits
  442.              for a response. Check the variable RESPONSE$ for an "E" and
  443.              terminate the current routine if found. For example:
  444.                 MORE
  445.                 IF UCASE$(RESPONSE$) = "E" THEN
  446.                   Etc.. Etc.
  447.  
  448. SUBROUTINE: MUSIC TUNE$
  449. PARAMETERS: MUSIC CODES
  450. DESCRIPTION: Outputs music to the remote system. The TUNE$ parameter
  451.              contains the same codes you would normally use in the BASIC
  452.              PLAY statement. For example:
  453.               TUNE$ = "t110 l8 ms d4 mn o3 g a b o4 c ... "
  454.               MUSIC TUNE$
  455.              Since not all communications programs can handle music, you
  456.              should ask the user if he has music capabilities. If the
  457.              user can't handle music he will simply see the music codes
  458.              come across his screen (not a pretty sight!).
  459.  
  460.  
  461. SUBROUTINE: OUT.PUT LF%
  462. PARAMETERS: LF%, 1, 2, Etc.
  463. DESCRIPTION: Outputs the specified number of CR/LF. Parameter is an INTEGER
  464.              number or an INTEGER variable. Ex: OUT.PUT 2
  465.  
  466.  
  467.  
  468. DOORFRAME v3.1 - Users Guide - Page 7
  469.  
  470. SUBROUTINE: SEND FILENAME$, YN%, CLR%
  471. PARAMETERS: FILENAME$ - STRING variable or quoted text of file to SEND.
  472.             YN%       - 0 = Do not use the ENTER prompt after last page.
  473.                         1 = Use the ENTER prompt after last page.
  474.             CLR%      - 0 = Home cursor, do not clear screen.
  475.                         1 = Normal clear screen.
  476. DESCRIPTION: Sends the specified filename. This can be either an ASCII file
  477.              or an ANSI file. SEND first checks for the existance of the file
  478.              and either sends the file or reports "File not Found!". This is
  479.              handy for displaying Help files, Welcome screens, etc.
  480.        NOTE: When using The Draw to create ANSI screens, save the screen using
  481.              the block mode (ALT-B) as this seems to produce better results
  482.              than using the regular save function (ALT-S).
  483.  
  484.  
  485. SUBROUTINE: SENDANSI FILENAME$, YN%, INTER%
  486. PARAMETERS: FILENAME$ - STRING variable or quoted text of file to send.
  487.             YN%       - 0 = Do not use the ENTER prompt after last page.
  488.                         1 = Use the ENTER prompt after last page.
  489.                         2 = Pause at end for Spacebar. Doesn't print anything
  490.             INTER%    - 0 = User can interrupt and exit the screen anytime.
  491.                         1 = User cannot interrupt file until it is finished.
  492. DESCRIPTION: Sends the specified ANSI file if it exists. This routine does
  493.              not stop until the entire file has been sent. Pressing the
  494.              Spacebar during display aborts the file unless Inter% is set
  495.              to 1.
  496.  
  497.  
  498. SUBROUTINE: SHOW.BLT YN$
  499. PARAMETERS: YN$, "Y", "N"
  500. DESCRIPTION: Call this routine if your Door features a Hi-score bulletin. Make
  501.              sure you have called MAKE.BLT first! Best place to call this
  502.              is just before you call EXIT.DOOR. For example:
  503.                MAKE.BLT HI.SCORE&
  504.                SHOW.BLT "Y"
  505.                EXIT.DOOR "Y"
  506.              SHOW.BLT "Y" will ask if they want to see the Bulletin.
  507.              SHOW.BLT "N" displays the bulletin without asking.
  508.  
  509.  
  510. DOORFRAME v3.1 - Users Guide - Page 8
  511.  
  512.  
  513.                              C O L O R  T A B L E
  514.                             ======================
  515.  
  516. COLOR # - NAME       INTENSITY       FOREGROUND (FG%)     BACKGROUND (BG%)
  517. ---------------------------------------------------------------------
  518.  0 - BLACK              Low               X                   X
  519.  1 - BLUE                "                X                   X
  520.  2 - GREEN               "                X                   X
  521.  3 - CYAN                "                X                   X
  522.  4 - RED                 "                X                   X
  523.  5 - MAGENTA             "                X                   X
  524.  6 - YELLOW              "                X                   X
  525.  7 - WHITE               "                X                   X
  526.  8 - GRAY               High              X
  527.  9 - LBLUE               "                X
  528. 10 - LGREEN              "                X
  529. 11 - LCYAN               "                X
  530. 12 - LRED                "                X
  531. 13 - LMAGENTA            "                X
  532. 14 - LYELLOW             "                X
  533. 15 - LWHITE              "                X
  534.  
  535. The COLORs are defined as CONSTANT in the DFRAMEX.INC file so you may use
  536. either the actual color number, it's name or an INTEGER variable of your own
  537. choosing when CALLing the DIS.PLAY subroutine.
  538.  
  539.  
  540.  
  541. DOORFRAME v3.1 - Users Guide - Page 9
  542.  
  543.  
  544.                               CONFIGURATION FILE
  545.                               ==================
  546.  
  547. The format of the configuration file used by Doors created with DoorFrame is:
  548.  
  549. C:\PCB\PCBOARD.SYS              <- For PCBoard systems using PCBOARD.SYS only
  550. C|\PCB\USERS.SYS                <- For PCBoard systems using USERS.SYS
  551. C:\BBS\CALLINFO.BBS             <- For Wildcat! systems (prior to v3.1)
  552. C:\BBS\GTUSER.BBS               <- For GT Power systems
  553. C:\BBS\USERINFO.DAT             <- For Wildcat! 3.x+ systems.
  554. C:\BBS\DOOR.SYS                 <- For systems that support DOOR.SYS
  555. C:\BBS\DORINFOx.DEF             <- For QBBS/RBBS/RA. Replace x with Node #.
  556. C:\BBS\SFDOORS.DAT              <- For Spitfire systems.
  557. C:\BBS\TRIBBS.SYS               <- For TriBBS systems.
  558. MicroNet                        <- BBS name
  559. Ted                             <- Sysop's first name
  560. Freeman                         <- Sysop's last name
  561.   .                             <- The Configuration file is left open as #1
  562.   .                                so you may add whatever is necessary.
  563.  
  564. NOTE: See Miscellaneous Notes for info on using Environment Variables.
  565.  
  566. NOTE: There are 2 additional lines necessary when using GTUSER.BBS. Since
  567.       this file does not provide the ComPort% and NodeNum% variables, advise
  568.       your Door users to add them to this .CFG file on lines 5 and 6
  569.       respectively. Both variables will default to 1.
  570.  
  571. DOORFRAME v3.1 - Users Guide - Page 10
  572.  
  573.                   VARIABLES AVAILABLE WHEN USING PCBOARD.SYS
  574.                   ==========================================
  575.  
  576.         ALLOWEDBYTES&             Allowed D/L bytes from the PWRD file.
  577.                                   This number is in actual bytes
  578.                                   rather than Kilobytes allowed.
  579.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  580.       * BAUDOPEN$                 Port opening BPS
  581.       * BBSSYS$                   Name of the BBS
  582.         CALLALARM%                Caller alarm status.     -1=ON, 0=OFF
  583.       * CALLERSLOC$               Location of CALLERSx log
  584.         CHATSTATUS$               Chat mode status. "U" or "A"
  585.       * CITY$                     Callers city and state
  586.       * CNAMESLOC$                Location of CNAMES
  587.       * COMPORT%                  COM port number
  588.         CONFREG$                  Conferences registered in
  589.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  590.         DOWNLOADS&                Number of downloads made
  591.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  592.         EXENAME$                  Name of .EXE (Programmer supplied)
  593.         EXPERT$                   Expert mode - "Y" or "N"
  594.         EXPIRE$                   Callers expiration date
  595.       * FIRST$                    Callers first name
  596.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  597.                                   Determines if the caller is ANSI compatible
  598.                                   If your door requires the use of cursor
  599.                                   positioning and GRAPHICS% = 0 then you
  600.                                   should kick him back out of the door.
  601.       * HPHONE$                   Callers home phone number
  602.       * LASTON$                   Date caller last logged on (MM-DD-YY)
  603.         LEVEL&                    Callers security level
  604.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  605.       * LOGONHRS$                 Time caller logged on in HH:MM format
  606.       * LOGONMINS%                Time caller logged on in minutes
  607.         MODE%                     0 = Non-color, -1 = color is on. Default
  608.                                   is the BBS setting. You may force color
  609.                                   by setting this to -1.
  610.       * NAME$                     Callers full name
  611.       * NETWORK%                  1 = BBS is networked, 0 = no network
  612.       * NODENUM%                  Node number
  613.         OWNER$                    Name DoorFrame is registered to (if any).
  614.         PASSWORD$                 Password of caller
  615.         PAGEBELL%                 Page bell status.        -1=ON, 0=OFF
  616.         PAGELEN%                  Callers page length
  617.       * PCBDAT$                   Location of PCBOARD.DAT
  618.       * PCBOARD%                  1 = PCBoard, 0 = non-PCBoard
  619.         PRINTER%                  Printer status.          -1=ON, 0=OFF
  620.         PROGNAME$                 Name of DOOR (Programmer supplied)
  621.         PROTOCOL$                 Caller's default protocol (Z, X, etc.)
  622.         RESPONSE$                 Returned after a CALL to IN.PUT
  623.         SERIAL$                   Your DoorFrame serial #. String variable.
  624.       * SYSLOC$                   Location of system file. This contains the
  625.                                   path/filename of line 1 in the .CFG file.
  626.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  627.       * SYSOPFIRST$               Sysops first name
  628.         SYSOPFLAG$                " ", "N"=Sysop Next, "X"=Exit to DOS
  629.       * SYSOPLAST$                Sysops last name
  630.       * SYSOPNAME$                Sysops first and last names
  631.  
  632.  
  633. DOORFRAME v3.1 - Users Guide - Page 11
  634.  
  635.  
  636.         TIMEADJUST%               Use to adjust the callers remaining time
  637.                                   online. This variable adjusts the ELAPSED
  638.                                   time so if you wish to decrease his time,
  639.                                   give this a positive value.
  640.       * TIMEALWD%                 Minutes caller is allowed
  641.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  642.                                   calculates this so changing it has no effect
  643.       * TIMENOW%                  Current time in minutes (0 - 1440)
  644.       * TIMESON%                  Number of times on system
  645.         TIMEOUT%                  Programmer supplied keyboard timeout.
  646.                                   Defaults to 300 (5 mins) if not specified. 
  647.                                   Has a minimum of 60 seconds. Maximum is 
  648.                                   32,767 since it's an integer.
  649.       * TIMEUSED%                 Time used so far today in minutes
  650.         UPLOADS&                  Number of uploads made
  651.       * USERCOMMENT$              User maintained comment
  652.       * USERSLOC$                 Location of USERS file
  653.       * USERNUM%                  Record number of caller
  654.         VERSION$                  DOOR version # (Programmer supplied)
  655.       * WPHONE$                   Callers work phone number
  656.  
  657. NOTES: Variables marked with '*' are provided for information only.
  658.  
  659.  
  660. DOORFRAME v3.1 - Users Guide - Page 12
  661.  
  662.  
  663.                    VARIABLES AVAILABLE WHEN USING USERS.SYS
  664.                    ========================================
  665.  
  666.         When using USERS.SYS, all variables contained in PCBOARD.SYS may
  667.         be used plus the following additional variables.
  668.  
  669.         DAILYDNLDBYTES&          Bytes downloaded so far today.
  670.         DELETEFLAG%              1 = delete this record, 0 = keep
  671.         EXPIREDLEVEL&            Expired Security level
  672.         LASTCONF%                Conference number last in.
  673.         LASTTIMEON$              Last time caller was on
  674.         MSGS.LEFT%               Number of messages posted
  675.         MSGS.READ%               Number of messages read
  676.         PCB.VERSION%             PCBoard version number (i.e. 1450)
  677.         TOTDNLDBYTES&            Total number of BYTES downloaded
  678.         TOTUPLDBYTES&            Total number of BYTES uploaded
  679.  
  680. NOTES: These variables are all passed back to PCBoard.
  681.  
  682.  
  683. DOORFRAME v3.1 - Users Guide - Page 13
  684.  
  685.                     VARIABLES AVAILABLE WHEN USING DOOR.SYS
  686.                     =======================================
  687.  
  688.     !   ALIAS$                    Callers alias/handle
  689.     ! * ANSISUPPORT$              Caller supports ANSI but in NG mode
  690.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  691.       * BAUDOPEN$                 Port opening BPS
  692.     ! * BBSCOLOR%                 BBS default color code (1-15)
  693.       * BBSSYS$                   Name of the BBS
  694.         BIRTHDATE$                Callers date of birth
  695.         CALLALARM%                Caller alarm status.     -1=ON, 0=OFF
  696.       * CITY$                     Callers city and state
  697.       * COMPORT%                  COM port number (0 - 15).
  698.         CONFREG$                  Conferences registered in
  699.         DAILY.BYTES.ALWD&         Daily download max. K limit
  700.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  701.     !   DOORS.OPENED%             Number of Doors caller has opened
  702.         DOWNLOADS&                Number of downloads made
  703.     ! * ECC%                      Error corrected connect.  1=YES, 0=NO
  704.         EXENAME$                  Name of .EXE (Programmer supplied)
  705.         EXFROM%                   Conference exited to Door from.
  706.         EXPERT$                   Expert mode - "Y" or "N"
  707.         EXPIRE$                   Callers expiration date
  708.     ! * EVENT$                    Event time (hh:mm)
  709.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  710.                                   Determines if the caller is ANSI compatible
  711.                                   If your door requires the use of cursor
  712.                                   positioning and GRAPHICS% = 0 then you
  713.                                   should kick him back out of the door.
  714.       * HPHONE$                   Callers home phone number
  715.       * LASTON$                   Date caller last logged on (MM-DD-YY)
  716.     !   LASTSCAN$                 Date of last directory/new files scan.
  717.         LEVEL&                    Callers security level
  718.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  719.       * LOGONHRS$                 Time caller logged on in HH:MM format
  720.       * LOGONMINS%                Time caller logged on in minutes
  721.     !   MAX.FILES&                Maximum daily files available
  722.     !   MINSCREDIT%               Time credits in minutes
  723.         MODE%                     0 = Non-color, -1 = color is on. Default
  724.                                   is the BBS setting. You may force color
  725.                                   by setting this to -1.
  726.     !   MSGS.LEFT&                Total messages left
  727.       * NAME$                     Callers full name
  728.     ! * NETWORK%                  1 = BBS is networked, 0 = no network
  729.       * NODENUM%                  Node number
  730.         DLTODAY&                  Files downloaded so far today
  731.         OWNER$                    Name DoorFrame is registered to (if any).
  732.         PAGEBELL%                 Page bell status.        -1=ON, 0=OFF
  733.         PAGELEN%                  Callers page length
  734.       * PARITY%                   Parity (word length?) (7 or 8)
  735.         PASSWORD$                 Password of caller
  736.       * PATHGEN$                  Path to the GEN directory
  737.       * PATHMAIN$                 Path to the MAIN directory
  738.         PRINTER%                  Printer status.          -1=ON, 0=OFF
  739.         PROGNAME$                 Name of DOOR (Programmer supplied)
  740.         PROTOCOL$                 Callers default protocol (Z, X, etc)
  741.         RESPONSE$                 Returned after a CALL to IN.PUT
  742.  
  743.  
  744. DOORFRAME v3.1 - Users Guide - Page 14
  745.  
  746.  
  747.         SECREM$                   Number of seconds remaining this call.
  748.         SERIAL$                   Your DoorFrame serial #. String variable.
  749.       * SYSLOC$                   Location of system file. This contains the
  750.                                   path/filename of line 1 in the .CFG file.
  751.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  752.       * SYSOPFIRST$               Sysops first name
  753.       * SYSOPLAST$                Sysops last name
  754.       * SYSOPNAME$                Sysops first and last names
  755.         TIMEADJUST%               Use to adjust the callers remaining time
  756.                                   online. This variable adjusts the ELAPSED
  757.                                   time so if you wish to decrease his time,
  758.                                   give this a positive value.
  759.     ! * TIMELASTCALL$             Time of last call (hh:mm)
  760.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  761.                                   calculates this so changing it has no effect
  762.       * TIMENOW%                  Current time in minutes (0 - 1440)
  763.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  764.                                   not specified. Has a minimum of one min.
  765.                                   No limit on maximum. 
  766.       * TIMESON%                  Number of times on system
  767.       * TIMEUSED%                 Time used so far today in minutes
  768.         TOTAL.BYTES.TODAY&        Daily download K total
  769.     !   TOTAL.KB.DL&              Total K bytes downloaded
  770.     !   TOTAL.KB.UL&              Total K bytes uploaded
  771.         UPLOADS&                  Number of uploads made
  772.       * USERCOMMENT$              User maintained comment
  773.       * USERNUM%                  Record number of caller
  774.         VERSION$                  DOOR version # (Programmer supplied)
  775.       * WPHONE$                   Callers work phone number
  776. NOTES: Variables marked with '*' are provided for information only.
  777.        Varialbes marked with '!' are available only in the 52 line version.
  778.  
  779.  
  780. DOORFRAME v3.1 - Users Guide - Page 15
  781.  
  782.                   VARIABLES AVAILABLE WHEN USING USERINFO.DAT
  783.                   ===========================================
  784.  
  785.       * ACTIVE.MENU%              0=Main, 1=Msg, 2=File, 3=Sysop
  786.         ALIAS$                    Callers alias/handle
  787.       * ANSISUPPORT$              'Y' or 'N' for ANSI enabled.
  788.         BANKED.TIME%              Banked time. (DLT - MaxLogOn)
  789.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  790.       * COMMAND.LINE$             Started with a CommandLine switch. Y or N.
  791.       * DATABITS$                 Databits, 7 or 8.
  792.       * DOOR.LOGOFF$              Y or N. Set to Y if caller logged off from
  793.                                   inside the door.
  794.         DOOR.DL&                  Number of files DL'ed in the door.
  795.         DOOR.KB&                  Downloads in K, add to daily and total bytes
  796.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  797.         LASTSCAN$                 Time/date of last new files scan
  798.       * LOGONTIMEDATE$            Time and date caller logged on to BBS
  799.       * NAME$                     Callers full name
  800.         SEC.LEVEL.NAME$           Security level name.
  801. NOTES: Variables marked with '*' are provided for information only.
  802.        All other variables are taken from the DOOR.SYS file.
  803.  
  804.                   VARIABLES AVAILABLE WHEN USING DORINFOx.DEF
  805.                   ===========================================
  806.  
  807.       * BAUDRATE$                 Baud rate and parity of caller.
  808.                                   Ex. 2400 BAUD,N,8,1
  809.                                   NOTE: RBBS adds baud rate of BBS.
  810.       * BBSSYS$                   Name of the BBS
  811.       * CITY$                     Callers city and state
  812.       * COMPORT%                  COM port number (0 - 15).
  813.         DISPLAY%                  Defaults to -1 (ON).
  814.       * DORINFO13TH$              13th line available only on RBBS systems.
  815.         EXENAME$                  Name of .EXE (Programmer supplied)
  816.       * FIRST$                    Callers first name
  817.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  818.                                   Determines if the caller is ANSI compatible
  819.                                   If your door requires the use of cursor
  820.                                   positioning and GRAPHICS% = 0 then you
  821.                                   should kick him back out of the door.
  822.                                   Use DETECT.ANSI to determine this.
  823.       * LAST$                     Callers last name
  824.       * LASTON$                   Default 01-01-80 (not provided in DORINFO)
  825.         LEVEL&                    Callers security level
  826.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  827.         MODE%                     0 = Non-color, -1 = color is on. Default
  828.                                   is the BBS setting. You may force color
  829.                                   by setting this to -1.
  830.       * NAME$                     Callers full name
  831.         NETWORK$                  Network type. DoorFrame reads/writes as is.
  832.       * NODENUM%                  Number of this Node.
  833.         OWNER$                    Name DoorFrame is registered to (if any).
  834.         PROGNAME$                 Name of DOOR (Programmer supplied)
  835.         RESPONSE$                 Returned after a CALL to IN.PUT
  836.         SERIAL$                   Your DoorFrame serial #. String variable.
  837.       * SYSLOC$                   Location of system file. This contains the
  838.                                   path/filename of line 1 in the .CFG file.
  839.  
  840.  
  841. DOORFRAME v3.1 - Users Guide - Page 16
  842.  
  843.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  844.       * SYSOPFIRST$               Sysops first name
  845.       * SYSOPLAST$                Sysops last name
  846.       * SYSOPNAME$                Sysops first and last names
  847.         TIMEADJUST%               Use to adjust the callers remaining time
  848.                                   online. This variable adjusts the ELAPSED
  849.                                   time so if you wish to decrease his time,
  850.                                   give this a positive value.
  851.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  852.                                   calculates this so changing it has no effect
  853.       * TIMENOW%                  Current time in minutes (0 - 1440)
  854.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  855.                                   not specified. Has a minimum of one min.
  856.                                   No limit on maximum. 
  857.       * TIMESON%                  Defaults to 1 (Not provided in DORINFO)
  858.       * TIMEUSED%                 Time used so far today in minutes
  859.  
  860. NOTES: Variables marked with '*' are provided for information only.
  861.  
  862.  
  863.                   VARIABLES AVAILABLE WHEN USING CALLINFO.BBS
  864.                   ===========================================
  865.  
  866.       * ALREADYCONNECTED$         "TRUE" or "FALSE"
  867.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  868.       * BBSSYS$                   Name of the BBS
  869.       * CITY$                     Callers city and state
  870.       * COMPORT%                  COM port number (0 - 15).
  871.         CONFREG$                  Conferences registered in (ABCD etc.)
  872.       * CONSOLE$                  "LOCAL" or "REMOTE"
  873.         DAILY.BYTES.ALWD&         Daily download max. K limit
  874.       * DATABITS$                 7 or 8
  875.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  876.       * DOORNUMBER$               BBS number of this door?
  877.         EXENAME$                  Name of .EXE (Programmer supplied)
  878.       * ENTERDOOR$                Time caller entered door in HH:MM format.
  879.       * FIRST$                    Callers first name
  880.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  881.                                   Determines if the caller is ANSI compatible
  882.                                   If your door requires the use of cursor
  883.                                   positioning and GRAPHICS% = 0 then you
  884.                                   should kick him back out of the door.
  885.                                   Use DETECT.ANSI to determine this.
  886.       * LAST$                     Callers last name
  887.         LASTMSG$                  Last message read
  888.       * LASTONDATE$               Date and time of last call
  889.         LEVEL&                    Callers security level
  890.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  891.       * LOGONTIMEDATE$            Time and date caller logged on to BBS
  892.       * LOGONHRS$                 Time caller logged on in HH:MM format
  893.         MODE%                     0 = Non-color, -1 = color is on. Default
  894.                                   is the BBS setting. You may force color
  895.                                   by setting this to -1.
  896.       * MNP$                      "MNP/ARQ Connection" or "Normal Connection"
  897.       * NAME$                     Callers full name
  898.         DLTODAY&                  Files downloaded so far today
  899.  
  900.  
  901. DOORFRAME v3.1 - Users Guide - Page 17
  902.  
  903.         OWNER$                    Name DoorFrame is registered to (if any).
  904.         PASSWORD$                 Password of caller
  905.         PROGNAME$                 Name of DOOR (Programmer supplied)
  906.         RESPONSE$                 Returned after a CALL to IN.PUT
  907.         SERIAL$                   Your DoorFrame serial #. String variable.
  908.       * SYSLOC$                   Location of system file. This contains the
  909.                                   path/filename of line 1 in the .CFG file.
  910.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  911.       * SYSOPFIRST$               Sysops first name
  912.       * SYSOPLAST$                Sysops last name
  913.       * SYSOPNAME$                Sysops first and last names
  914.         TIMEADJUST%               Use to adjust the callers remaining time
  915.                                   online. This variable adjusts the ELAPSED
  916.                                   time so if you wish to decrease his time,
  917.                                   give this a positive value.
  918.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  919.                                   calculates this so changing it has no effect
  920.       * TIMENOW%                  Current time in minutes (0 - 1440)
  921.       * TIMEOFF$                  Time caller exited from the door.
  922.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  923.                                   not specified. Has a minimum of one min.
  924.                                   No limit on maximum. 
  925.       * TIMEUSED%                 Time used so far today in minutes
  926.       * USERNUM%                  Record number of caller
  927.  
  928. NOTES: Variables marked with '*' are provided for information only.
  929.  
  930.  
  931. DOORFRAME v3.1 - Users Guide - Page 18
  932.  
  933.                   VARIABLES AVAILABLE WHEN USING SFDOORS.DAT
  934.                   ==========================================
  935.  
  936.         ANSION$                   "TRUE" or "FALSE"
  937.       * BAUDCONN$                 Connect rate of caller or "LOCAL"
  938.       * BBSDIR$                   Spitfire's home directory
  939.       * BBSSYS$                   Name of the BBS
  940.       * CITY$                     Callers city and state
  941.       * COMPORT%                  COM port number (0 - 15).
  942.         DAILY.BYTES.ALLOWED&      Maximum download BYTES per day
  943.         DISPLAY%                  Local display status.    -1=ON, 0=OFF
  944.         DLPERDAY&                 Number of downloads allowed per day
  945.         DLTODAY&                  Number of downloads made today
  946.         DOWNLOADS&                Number of downloads made
  947.       * ECC%                      Error corrected connect.  1=YES, 0=NO
  948.         EXENAME$                  Name of .EXE (Programmer supplied)
  949.         EXTRATIME&                Number of seconds gained since logon
  950.       * FIRST$                    Callers first name
  951.       * FRONTEND$                 "TRUE" or "FALSE" if booted from a
  952.                                   front end program.
  953.         GRAPHICS%                 Graphics mode status.    -1=ON, 0=OFF
  954.                                   Determines if the caller is ANSI compatible
  955.                                   If your door requires the use of cursor
  956.                                   positioning and GRAPHICS% = 0 then you
  957.                                   should kick him back out of the door.
  958.                                   Use DETECT.ANSI to determine this.
  959.       * HPHONE$                   Callers home phone number
  960.       * LAST$                     Callers last name
  961.         LASTMCONF$                Last message conference
  962.         LASTFAREA$                Last file area
  963.         LEVEL&                    Callers security level
  964.       * LOCALUSR%                 -1 = LOCAL mode, 0 = Online
  965.       * LOGONHRS$                 Time caller logged on in HH:MM format
  966.       * LOGONSECS&                Number of seconds since midnight
  967.                                   when caller logged on to the BBS.
  968.       * MAXBAUD$                  Maximum baud of the system
  969.         MODE%                     0 = Non-color, -1 = color is on. Default
  970.                                   is the BBS setting. You may force color
  971.                                   by setting this to -1.
  972.       * NAME$                     Callers full name
  973.       * NODENUM%                  Number of this Node.
  974.       * NODTELOCK$                "TRUE" or "FALSE" if configured for
  975.                                   software data flow control.
  976.         OWNER$                    Name DoorFrame is registered to (if any).
  977.         PASSWORD$                 Password of caller
  978.         PROGNAME$                 Name of DOOR (Programmer supplied)
  979.         RESPONSE$                 Returned after a CALL to IN.PUT
  980.       * SECONDS&                  Number of seconds since midnight
  981.                                   when caller entered the door.
  982.         SERIAL$                   Your DoorFrame serial #. String variable.
  983.       * SYSLOC$                   Location of system file. This contains the
  984.                                   path/filename of line 1 in the .CFG file.
  985.       * SYSOP%                    1 = SYSOP is using DOOR, 0 otherwise
  986.       * SYSOPFIRST$               Sysops first name
  987.  
  988. NOTES: Variables marked with '*' are provided for information only.
  989.  
  990.  
  991. DOORFRAME v3.1 - Users Guide - Page 19
  992.  
  993.       * SYSOPLAST$                Sysops last name
  994.       * SYSOPNAME$                Sysops first and last names
  995.         SYSOPNEXT$                "TRUE" or "FALSE"
  996.         TIMEADJUST%               Use to adjust the callers remaining time
  997.                                   online. This variable adjusts the ELAPSED
  998.                                   time so if you wish to decrease his time,
  999.                                   give this a positive value.
  1000.       * TIMEALWD%                 Minutes caller is allowed
  1001.       * TIMELEFT%                 Time caller has left in minutes. Doorframe
  1002.                                   calculates this so changing it has no effect
  1003.       * TIMENOW%                  Current time in minutes (0 - 1440)
  1004.         TIMEOUT%                  Programmer supplied. Defaults to 5 mins if
  1005.                                   not specified. Has a minimum of one min.
  1006.                                   No limit on maximum. 
  1007.       * TIMEUSED%                 Time used so far today in minutes
  1008.  
  1009.         TOTAL.BYTES.TODAY&        BYTES downloaded so far today
  1010.         TOTAL.KB.DL&              Total K bytes downloaded
  1011.         TOTAL.KB.UL&              Total K bytes uploaded
  1012.         UPLOADS&                  Number of uploads made
  1013.       * USERNUM%                  Record number of caller
  1014.  
  1015. NOTES: Variables marked with '*' are provided for information only.
  1016.  
  1017.  
  1018. DOORFRAME v3.1 - Users Guide - Page 20
  1019.  
  1020.                                 MISCELLANEOUS NOTES
  1021.                                 ===================
  1022.  
  1023. Check DFRAMEX.INC for an explanation of variables not listed above.
  1024.  
  1025. DoorFrame requires DOS 3.x and up since all files are opened in SHARED mode.
  1026.  
  1027. When using PCBOARD.SYS, DoorFrame also accesses the USERS file.
  1028.  
  1029. When using USERS.SYS, DoorFrame also accesses PCBOARD.SYS, PCBOARD.DAT and the 
  1030. USERS file.
  1031.  
  1032. The DOOR.SYS used by DoorFrame is the standard 52 line GAP (tm) file.
  1033.  
  1034. The CALLINFO.BBS used by DoorFrame currently contains 36 lines.
  1035.  
  1036. Trapping errors
  1037. ---------------
  1038.  If you wish to utilize the internal error trapping, insert the following
  1039.  line wherever you wish the trapping to begin. I would suggest putting it
  1040.  right after you call INITIALIZE.
  1041.  
  1042.    ON ERROR GOTO ERR.ROUTINE
  1043.  
  1044.  Then at the very end of your program insert the following:
  1045.  
  1046.    ERR.ROUTINE:
  1047.    ERRORS ERR, ERL
  1048.    END
  1049.  
  1050.  If ANY Basic error is encountered, it will branch to ERR.ROUTINE and call
  1051.  the ERRORS subroutine. The error will be printed to the screen and written
  1052.  to DFRAME.ERR. Your Door will then exit back to the BBS.
  1053. The first few lines of your Door should be:
  1054.  
  1055.    ' $INCLUDE: 'DFRAMEX.INC'
  1056.    PROGNAME$ = "Name of the Door"
  1057.    VERSION$ = " v1.0"
  1058.    EXENAME$ = "FILENAM"           <- NOTE: Max of 7 letters!
  1059.    TIMEOUT% = 240                 <- Numbers of seconds to wait for keyboard
  1060.                                      activity. 240 will wait for 4 minutes
  1061.                                      then send a Keyboard Timeout msg. and
  1062.                                      exit back to the BBS. Defaults to 300.
  1063.    OWNER$ = "Your Name"           <- For registered DoorFrame users only.
  1064.    SERIAL$ = "99999"              <- DoorFrame will display an EVALUATION
  1065.                                      COPY message until registered.
  1066.    INITIALIZE
  1067.    .
  1068.    Your code.......
  1069.    .
  1070.    MAKE.BLT HI.SCORE&            <- If you want one generated.
  1071.    SHOW.BLT "Y"                  <- If you want to show it before door closes.
  1072.    EXIT.DOOR "Y"
  1073. The configuration filename passed on the command line is OPENed as #1. This
  1074. file is left open so you may read additional lines from the .CFG file. 
  1075. Although it is not absolutely necessary, you should CLOSE #1 somewhere near
  1076. the start of your program.
  1077.  
  1078.  
  1079. DOORFRAME v3.1 - Users Guide - Page 21
  1080.  
  1081. Using SysopKeys%
  1082. ----------------
  1083. By setting SysopKeys% = 1 (after calling INITIALIZE), you can utilize the
  1084. arrow keys for remote input. This could be used for moving highlight bars
  1085. etc. (see the DFDEMO for an example).  Using the arrow keys from remote can
  1086. present difficulties because the terminal program the caller is using may
  1087. have redefined the arrow keys. Qmodem is a good example. Normally the up
  1088. arrow in Qmodem activates the scroll back buffer. However, if you switch
  1089. Qmodem into DoorWay mode (ALT =), the arrow keys can be used. I do not know
  1090. if this is possible with other terminals (feedback anyone?).  If you do
  1091. utilize the arrow keys, you would be wise to provide an alternative method
  1092. of input for those callers who cannot use their arrow keys.
  1093.  
  1094. In addition, set Sysopkeys% = 1 only when arrow input is required then
  1095. immediately set SysopKeys% = 0 since capital H, K, M, and P are also
  1096. interpreted as arrow keys when SysopKeys% = 1.
  1097.  
  1098. Turning off the Status lines.
  1099. -----------------------------
  1100. If for some reason you do not want the 2 Status lines at the bottom of the
  1101. screen to show, you may blank those out at any time with the following.
  1102.  
  1103.  No.Status% = 1
  1104.  ClrScrn Black
  1105.  
  1106. To turn the Status lines back on just set No.Status% = 0.
  1107.  
  1108. Returning control to programmer upon carrier loss
  1109. -------------------------------------------------
  1110. There may be instances where the programmer needs to do some clean-up when
  1111. a loss of carrier occurs before returning to the BBS. There are two variables
  1112. that allow you to do this. After calling INITIALIZE, set Auto.Recycle% = 0.
  1113. If carrier is lost, the variable NoCarrier% is set equal to 1. One way to 
  1114. handle this is to check NoCarrier% after each In.Put, Enter, or More 
  1115. statement. If NoCarrier% = 1, your door will NOT stop for user input. For
  1116. example:
  1117.  
  1118.    In.Put 0, 0, 11, 0, 1, "Prompt > ", 10, 1, 1
  1119.    IF NoCarrier% = 1 THEN GOTO HandleIt
  1120.  
  1121. If the door was sitting at the In.Put prompt when carrier loss occurred, it
  1122. would immediately come out of it and process the next statement. You must be
  1123. VERY CAREFUL when using this option. Make sure you TEST IT THOROUGHLY!!!
  1124.  
  1125. After you have done your clean-up, be sure to call Exit.Door "Y" to terminate
  1126. the door as you normally would.
  1127.  
  1128. System.File% Variable
  1129. ---------------------
  1130. The value of System.File% will tell you which BBS file is being  used 
  1131. according to the following values:
  1132.  
  1133.         1 = PCBOARD.SYS                    6 = DORINFOx.DEF
  1134.         2 = USERS.SYS                      7 = SFDOORS.DAT                    
  1135.         3 = DOOR.SYS                       8 = USERINFO.DAT
  1136.         4 = CALLINFO.BBS                   9 = GTUSER.BBS
  1137.         5 = Not Used                      10 = TRIBBS.SYS
  1138.  
  1139.  
  1140. DOORFRAME v3.1 - Users Guide - Page 22
  1141.  
  1142. Fossil Driver Support
  1143. ---------------------
  1144. DoorFrame supports the use of Fossil drivers.  To tell your Door to use the
  1145. Fossil driver instead of the standard COM ports, just put /FD on the command
  1146. line when running the door. For example:
  1147.      MYDOOR MYDOOR.CFG /FD
  1148. indicates that a Fossil driver is present and should be used. If no Fossil
  1149. driver is detected, DoorFrame will print a message to that effect and exit
  1150. the door gracefully.
  1151.  
  1152. Environment Variables
  1153. ---------------------
  1154. DoorFrame supports COM 1-4 on the standard IRQ's - COM1/COM3 = IRQ4 and
  1155. COM2/COM4 = IRQ3. If you wish to use a non-standard IRQ, add the IRQ
  1156. number after the configuration filename. Let's assume your Door is
  1157. called FOOBAR and you want to use COM1 and IRQ5. The command line
  1158. passed to your Door would be:
  1159.     FOOBAR FOOBAR.CFG /5  or
  1160.     FOOBAR FOOBAR.CFG /%IRQ%  for the environment variable.
  1161. The /5 tells DoorFrame to use IRQ5 rather than the standard IRQ4 that
  1162. is normally used with COM1. No /x parameter is needed for the standard IRQ's.
  1163.  
  1164. When specifying the location of the system file on line 1 of the doors .CFG
  1165. file, you may use the environment variables %pcbdrive%, %pcbdir%, %pcbnode%,
  1166. and %wcnodeid%. Some examples:
  1167.  PCBoard: 
  1168.    USERS.SYS in C:\PCB           - %pcbdrive%%pcbdir%\USERS.SYS
  1169.    USERS.SYS in C:\PCB\NODE1     - %pcbdrive%%pcbdir%\NODE%pcbnode%\USERS.SYS
  1170.  
  1171.  Wildcat!:
  1172.    USERINFO.DAT in C:\WC\NODE1   - C:\WC\NODE%wcnodeid%
  1173.  
  1174. Non-PCBoard systems may use the PCB environment variables by setting them
  1175. in either AUTOEXEC.BAT or in the batch that runs the door. For example:
  1176.  SET PCBDRIVE=C:
  1177.  SET PCBDIR=\BBSDIR
  1178.  SET PCBNODE=1
  1179.  
  1180. 486DX CPU's
  1181. -----------
  1182. The math coprocessor in 486DX CPUs cannot handle floating point math which
  1183. all MicroSoft Basic's use. This can show up as an ERROR 5, a keyboard 
  1184. timeout, etc.
  1185.  
  1186. Fortunately there is an easy fix for this problem. Simply place the following
  1187. line in the AUTOEXEC.BAT file:
  1188.  
  1189. SET NO87=ON
  1190.